﻿@{
    ViewBag.Title = "计量器具台账明细";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section scripts{
    <script src="~/Areas/Dev/ViewModels/Dev.com.js"></script>
    <script src="~/Areas/Dev/ViewModels/Dev.viewModel.edit.js"></script>
    <script type="text/javascript">
        using(['numberbox','lookup','combobox']);

        var data = @Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(Model));
        var viewModel =function(data) {
            var self = this;
            Dev.viewModel.edit.apply(this, arguments);
            this.grid.size={w:6,h:151};
        };
        ko.bindingViewModel(new viewModel(data));
    </script>
}
<style type="text/css">
    .z-area-txt {
        margin: 0px;
        padding: 0 3px;
        width: 122px;
        line-height: 20px;
        height: 100px;
        border: 1px solid #A4BED4;
        background: white;
        font-size: 12px;
        display: inline-block;
    }
</style>
<div class="z-toolbar">
    <a id="a_save" href="#" plain="true" class="easyui-linkbutton" icon="icon-save" data-bind="click:saveClick,linkbuttonDisable:readonly" title="保存">保存</a>
    <a id="a_undo" href="#" plain="true" class="easyui-linkbutton" icon="icon-undo" data-bind="click:rejectClick,linkbuttonDisable:readonly" title="撤消">撤消</a>
    <a id="a_audit" href="#" plain="true" class="easyui-linkbutton" icon="icon-user-accept" data-bind="click:auditClick,easyuiLinkbutton:approveButton" title="审核">审核</a>
@*  <a id="a_printer" href="#" plain="true" class="easyui-linkbutton" icon="icon-printer" title="打印" data-bind="click:printClick">打印</a>*@
   <div class="datagrid-btn-separator"></div>
    <a id="a_first" href="#" plain="true" class="easyui-linkbutton" icon="icon-resultset_first" data-bind="click:firstClick,linkbuttonEnable:scrollKeys.firstEnable" title="第一条"></a> 
    <a id="a_previous" href="#" plain="true" class="easyui-linkbutton" icon="icon-resultset_previous" data-bind="click:previousClick,linkbuttonEnable:scrollKeys.previousEnable" title="上一条"></a> 
    <a id="a_next" href="#" plain="true" class="easyui-linkbutton" icon="icon-resultset_next" data-bind="click:nextClick,linkbuttonEnable:scrollKeys.nextEnable" title="下一条"></a> 
    <a id="a_last" href="#" plain="true" class="easyui-linkbutton" icon="icon-resultset_last" data-bind="click:lastClick,linkbuttonEnable:scrollKeys.lastEnable" title="最后一条"></a> 
</div>
<div title="计量器具">
    <div id="master" class="container_12" data-bind="inputwidth:1,autoheight:73" style="margin-top:10px;">
        <div class="grid_2 lbl">仪器编号</div>
        <div class="grid_3 val"><input type="text" data-bind="value:form.Jlqjtz_Yqbh,readOnly:true" class="z-txt readonly" /></div>
        <div class="grid_2 lbl required">仪器名称</div>
        <div class="grid_3 val"><input type="text" data-bind="value:form.Jlqjtz_Yqmc" class="z-txt" required="true" /></div>
        <div class="clear"></div>
        <div class="grid_2 lbl">规格型号</div>
        <div class="grid_3 val "><input type="text" data-bind="value:form.Jlqjtz_Ggxh" class="z-txt" /></div>
        <div class="grid_2 lbl">测量范围</div>
        <div class="grid_3 val"><input type="text" data-bind="value:form.Jlqjtz_Clfw" class="z-txt" /></div>
        <div class="clear"></div>
        <div class="grid_2 lbl">精确等级</div>
        <div class="grid_3 val"><input type="text" data-bind="value:form.Jlqjtz_Jqdj" class="z-txt" /></div>
        <div class="grid_2 lbl">出厂日期</div>
        <div class="grid_3 val"><input type="text" data-bind="dateboxValue:form.Jlqjtz_Ccrq" class="z-txt easyui-datebox" /></div>
        <div class="clear"></div>
        <div class="grid_2 lbl">出厂编号 </div>
        <div class="grid_3 val"><input type="text" data-bind="value:form.Jlqjtz_Ccbh" class="z-txt" /></div>
        <div class="grid_2 lbl">制造厂家 </div>
        <div class="grid_3 val"><input type="text" data-bind="value:form.Jlqjtz_Zzcj" class="z-txt" /></div>
        <div class="clear"></div>
        <div class="grid_2 lbl">安装地点 </div>
        <div class="grid_3 val"><input type="text" data-bind="value:form.Jlqjtz_Azdd" class="z-txt" /></div>
        <div class="grid_2 lbl">购买时间</div>
        <div class="grid_3 val"><input type="text" data-bind="dateboxValue:form.Jlqjtz_Gmsj" class="z-txt easyui-datebox" /></div>
        <div class="clear"></div>
        <div class="grid_2 lbl lbs">校验周期</div>
        <div class="grid_3 val"><input type="text" data-bind="value:form.Jlqjtz_Jyzq" class="z-txt" /></div>
        <div class="grid_2 lbl lbs">校验周期单位</div>
        <div class="grid_3 val"><input type="text" data-bind="value:form.Jlqjtz_Jyzqdw" class="z-txt" /></div>
        <div class="clear"></div>
        <div class="grid_2 lbl">校验时间</div>
        <div class="grid_3 val"><input type="text" data-bind="dateboxValue:form.Jlqjtz_Jysj" class="z-txt easyui-datebox" /></div>
        <div class="grid_2 lbl">使用单位编号</div>
        <div class="grid_3 val"><input type="text" data-bind="value:form.Jlqjtz_Sydwbh" class="z-txt" /></div>
        <div class="clear"></div>
        <div class="grid_2 lbl">使用单位名称</div>
        <div class="grid_3 val"><input type="text" data-bind="value:form.Jlqjtz_Sydwmc" class="z-txt" /></div>
        <div class="grid_2 lbl">确认人</div>
        <div class="grid_3 val"><input type="text" data-bind="value:form.ApprovePerson" class="z-txt" /></div>
        <div class="clear"></div>
        <div class="grid_2 lbl">确认日期</div>
        <div class="grid_3 val"><input type="text" data-bind="dateboxValue:form.ApproveDate" class="z-txt easyui-datebox" /></div>
        <div class="grid_2 lbl">确认状态</div>
        <div class="grid_3 val"><input type="text" data-bind="value:form.ApproveState" class="z-txt " /></div>
        <div class="clear"></div>
        <div class="grid_2 lbl">确认说明</div>
        <div class="grid_8 val"><textarea data-bind="value:form.ApproveRemark,readOnly:readonly" style="width:99%" class="z-area-txt"> </textarea></div>
    </div>
</div>
